@layout("/common/_form.html",{js:["/assets/purchase/purchase_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">采购计划</span>
</div>
<div class="alert alert-success" role="alert">采购计划注意：<span id="statusTip"></span></div>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding-top: 40px;">
            <div class="layui-form-item layui-form-text" style="margin: 0px">
                <div id="step_demo" class="step-body">
                    采购进度:
                    <div class="step-header" id="step_header" style="width:80%;overflow: hidden;">
                        <ul>
                            <li id="step0"><span class="step-name">申请阶段</span></li>
                            <li id="step2"><span class="step-name">下单阶段</span></li>
                            <li id="step1"><span class="step-name">入库阶段</span></li>
                            <li id="step3"><span class="step-name">完成阶段</span></li>
                        </ul>
                    </div>
                </div>
            </div>
            <form class="layui-form" id="purchaseForm" lay-filter="purchaseForm">
                <div class="layui-fluid" style="padding-bottom: 75px;">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item layui-row">
                                <input name="purchaseId" type="hidden"/>
                                <div id="basicForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">基本信息</span>
                                            </div>
                                        </div>
                                    </div>
                                    <input name="planId" type="hidden"/>
                                    <input name="status" type="hidden"/>
                                    <div class="layui-inline layui-col-md12">
                                        <label class="layui-form-label">标题</label>
                                        <div class="layui-input-block">
                                            <input id="title" name="title" placeholder="请输入标题" type="text"
                                                   class="layui-input"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-inline layui-col-md12">
                                    <label class="layui-form-label">备注</label>
                                    <div class="layui-input-block">
                                        <input id="remark" name="remark" placeholder="请输入备注" type="text"
                                               class="layui-input"/>
                                    </div>
                                </div>
                                <!--                原料                -->
                                <div id="materielForm">
                                    <div class="layui-form toolbar" id="addMaterielForm">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <button id="btnExp" class="layui-btn layui-btn-danger layui-btn-sm" type="button">
                                                    <i class="layui-icon">&#xe654;</i>添加物料
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">物料列表</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-card">
                                            <div id="materielItemList" class="layui-form-item layui-row">
                                            </div>
                                    </div>
                                </div>
                                <!--                         人员                           -->
                                <div id="workerForm">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <span class="layui-badge layui-bg-green">人员</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md6">
                                        <label class="layui-form-label">执行人员</label>
                                        <div class="layui-input-block">
                                            <input id="worker" name="worker" type="hidden" class="layui-input"/>
                                            <select name="worker" id="workerSelect" lay-filter="workerSelect">

                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline layui-col-md4">
                                        <label class="layui-form-label">审核人员</label>
                                        <div class="layui-input-block">
                                            <input id="reviewWorker" name="reviewWorker" type="hidden"
                                                   class="layui-input"/>
                                            <select name="reviewWorker" id="reviewWorkerSelect"
                                                    lay-filter="reviewWorkerSelect">

                                            </select>

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group-bottom text-center">
                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit id="comfireButton" type="button">
                        <span id="comfirmSpan">提交</span>
                    </button>
                    <button type="reset" class="layui-btn layui-btn-primary" id="backupPage">返回</button>
                </div>

            </form>
        </div>
    </div>
</div>

@}